﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActivityBulletinList.aspx.cs" Inherits="ZHDJ.BranchCenter.Module.MassLine.ActivityBulletinList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"></f:PageManager>
        <f:Panel ID="Panel1" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start" ShowHeader="false" Title="活动简报">
            <Items>
                <f:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
                    ShowBorder="false">
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>
                                <f:TextBox ID="txtTitle" runat="server" Label="标题" LabelAlign="right" LabelWidth="50px"></f:TextBox>
                                <f:TextBox ID="txtCreateBy" runat="server" Label="创建人" LabelAlign="right" LabelWidth="60px" Width="100px"></f:TextBox>
                                <f:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" Icon="SystemSearch"></f:Button>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                    EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="true"
                    OnSort="Grid1_Sort" SortField="Title" SortDirection="DESC" AllowPaging="true"
                    IsDatabasePaging="true" OnPreDataBound="Grid1_PreDataBound" OnRowCommand="Grid1_RowCommand"
                    OnPageIndexChange="Grid1_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <f:Button ID="btnDeleteSelected" Icon="Delete" runat="server" ConfirmText="确认要删除选中记录？" Text="删除选中记录" OnClick="btnDeleteSelected_Click">
                                </f:Button>
                                <f:ToolbarSeparator runat="server">
                                </f:ToolbarSeparator>
                                <f:ToolbarFill ID="ToolbarFill1" runat="server">
                                </f:ToolbarFill>
                                <f:Button ID="btnAdd" runat="server" Icon="Add" EnablePostBack="false" Text="新增">
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged" runat="server">
                            <f:ListItem Text="10" Value="10"></f:ListItem>
                            <f:ListItem Text="20" Value="20"></f:ListItem>
                            <f:ListItem Text="50" Value="50"></f:ListItem>
                            <f:ListItem Text="100" Value="100"></f:ListItem>
                        </f:DropDownList>
                    </PageItems>
                    <Columns>
                        <f:RowNumberField />
                        <f:BoundField DataField="Title" SortField="Author" HeaderText="标题" ExpandUnusedSpace="true" TextAlign="left" />
                        <f:BoundField DataField="BranchName" Width="200px" HeaderText="所属组织" />
                        <f:BoundField DataField="UserName" Width="120px" HeaderText="创建人" TextAlign="Center" />
                        <f:BoundField DataField="StatusEx" HeaderText="状态" TextAlign="Center" Width="80px" />
                        <f:BoundField DataField="CreateTime" Width="100px" HeaderText="创建时间" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" />
                        <f:WindowField ColumnID="editField" TextAlign="Center" Icon="Pencil" HeaderText="操作" ToolTip="编辑" WindowID="Dialog"
                            Title="编辑" DataIFrameUrlFields="ID" Width="50px"
                            DataIFrameUrlFormatString="ActivityBulletinEdit.aspx?id={0}" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="Dialog" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="700px" Height="420px" OnClose="Dialog_Close">
        </f:Window>
    </form>
</body>
</html>
